package sliver.dao.impl;

import java.io.Serializable;
import java.util.List;

import org.springframework.stereotype.Repository;

import sliver.dao.MachineDao;
import sliver.entity.Machine;

@Repository
public class MachineDaoImpl extends BaseDaoImpl<Machine> implements MachineDao{
	
	@Override
	public List<Machine> findList(Serializable shopperId) {
		
		String queryString = "SELECT m FROM Machine m WHERE m.shopper.id = ?";
		
		return complexQuery(queryString, new Object[]{shopperId});
	}
	
}
